package com.atguigu.builder.improve;

/**
 * @author LYJ
 * @Description
 * @date 2021 年 09 月 15 日 下午7:58
 */
public class Director {
    private HouseBuilder houseBuilder;

    public Director(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }


    public House constructBuilder() {
        houseBuilder.buildBasic();
        houseBuilder.buildWalls();
        houseBuilder.buildRooted();
        return houseBuilder.buildHouse();
    }
}
